package com.bss.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.andy.basics.Service;
import com.bss.model.Material;
import com.bss.service.MaterialService;

@Controller
@Scope("request")
public class MaterialController extends com.andy.basics.Controller<Material> {

	@Autowired
	private MaterialService materialService;

	@Override
	public Service<Material> getService() {
		// TODO Auto-generated method stub
		return materialService;
	}

	public void setMaterialService(MaterialService materialService) {
		this.materialService = materialService;
	}

	@Override
	public Material create() {
		return new Material();
	}

}
